package com.wt.admin.entity.rewentity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author wt
 * @since 2023-08-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WqunComment对象", description="评论返回表")
public class RewComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标识")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "用户uid")
    private String userUid;

    @ApiModelProperty(value = "评论人名字")
    private String username;

    @ApiModelProperty(value = "回复对象的名字")
    private String replyName;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "回复某条评论的uid")
    private String toUid;

    @ApiModelProperty(value = "回复某个人的uid")
    private String toUserUid;

    @ApiModelProperty(value = "评论内容")
    private String content;





    @ApiModelProperty(value = "评论来源： MESSAGE_BOARD，ABOUT，BLOG_INFO 等")
    private String source;

    @ApiModelProperty(value = "评论类型 1:点赞 0:评论")
    @TableField("TYPE")
    private Boolean type;

    @ApiModelProperty(value = "创建时间",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "created_time",fill = FieldFill.INSERT)
    private Date createdTime;


    @ApiModelProperty(value = "二级评论内容")
    private List<RewComment> replyInfo;
}
